<?xml version="1.0" encoding="UTF-8"?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns="http://www.w3.org/1999/xhtml" version="2.1">
	<jsp:directive.page contentType="text/html; charset=UTF-8" />
	<jsp:directive.page isELIgnored="false" />
	<jsp:output omit-xml-declaration="false" doctype-root-element="HTML"
		doctype-system="about:legacy-compat" />
	<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<link rel="shortcut icon" href="${pageContext.request.contextPath }/img/favicon.png" />
<title>Ikex</title>

<link rel="stylesheet"
	href="${pageContext.request.contextPath }/css/estilos.css"
	type="text/css" media="screen" charset="utf-8" />

<link rel="stylesheet"
	href="${pageContext.request.contextPath }/css/menuLateral.css"
	type="text/css" media="screen" charset="utf-8" />



<meta name="description" content="" />
<meta name="author" content="Emilio Javier Castillo Gonzalez" />

</head>


<body>
	<c:import url="${pageContext.request.pathInfo}/jsp/menuLateral.jsp" />
	<div id="contenedor">
		<c:import url="${pageContext.request.pathInfo}/jsp/cabecera.jsp" />

		<div id="contenido" style="padding-top: 0px;">
			
			<div id="centro" style="margin-top: 0px;">
				<c:import url="${pageContext.request.pathInfo}/Admin/menuAdmin.jsp" />
				<script type="text/javascript">
					var doc = document.getElementById("c");
					doc.setAttribute("class", "menuAdminHover");
				</script>
				<div id="nuevoUsuario" style="width: 360px;">
					
					<h2 style="text-align: center;">Fotos slider</h2>
					<jsp:useBean id="slider" class="es.ikex.beans.SliderBean" scope="session" />
					<jsp:setProperty name="slider" property="where" value=""/>
					<table class="tablaGris" style="margin: 0 auto;">
					<form action="${pageContext.request.contextPath}/slider" method="post">
					<c:forEach items="${slider.slider}" varStatus="status" var="sl">
						<c:if test="${status.index == 0 }">
							<tr>
								<td class="sinBorde"></td>
								<td class="blanco">Posicion</td>
								<td class="blanco">Foto</td>
								<td class="blanco">Nombre</td>
								<td class="blanco">Efecto</td>
							</tr>
							<tr>
								<td>
									<input checked="checked" id="s${status.index }" type="radio" name="id" value="${sl.id }"/>
								</td>
								<td><label for="s${status.index }">${sl.id }</label></td>
								<td><label for="s${status.index }">
									<c:if test="${sl.foto == 'sinFoto'}">
										<span>Sin usar</span>
									</c:if>
									<c:if test="${sl.foto != 'sinFoto'}">
										<img alt="imagen-slider" height="45px" width="90px" src="${pageContext.request.contextPath}/img/slider/fotos/${sl.foto}" />
									</c:if>
									</label>
								</td>
								<td><label for="s${status.index }">${sl.nombre }</label></td>
								<td><label fot="s${status.index }">${sl.efecto }</label></td>
							</tr>
						</c:if>
						<c:if test="${status.index != 0 }">
							<tr>
								<td>
									<input type="radio" id="s${status.index }" name="id" value="${sl.id }"/>
								</td>
								<td><label for="s${status.index }">${sl.id }</label></td>
								<td><label for="s${status.index }">
									<c:if test="${sl.foto == 'sinFoto'}">
										<span>Sin usar</span>
										
									</c:if>
									<c:if test="${sl.foto != 'sinFoto'}">
										<img alt="imagen-slider" height="45px" width="90px" src="${pageContext.request.contextPath}/img/slider/fotos/${sl.foto}" />
									</c:if>
									</label>
								</td>
								<td><label for="s${status.index }">${sl.nombre }</label></td>
								<td><label fot="s${status.index }">${sl.efecto }</label></td>
							</tr>
						</c:if>
					</c:forEach>
					<tr>
						<td class="sinBorde"></td>
						<td class="blanco"><input type="submit" name="editar" value="Editar"/></td>
						<td class="sinBorde"></td>
						<td class="blanco"><input type="submit" name="borrar" value="Borrar" /></td>
						<td class="sinBorde"></td>
					</tr>
					</form>
					</table>
				</div>
			</div>
		</div>
		<div id="der"></div>
	</div>


</body>
	</html>
</jsp:root>